using System;

using EntLibEC.Cmn;

namespace EntLibEC.Info.Sale
{
	/// <summary>
	/// Summary description for SaleGiftRelateMoneyInfo.
	/// </summary>
	public class SaleGiftRelateMoneyInfo : IComparable
	{
		public SaleGiftRelateMoneyInfo()
		{
			Init();
		}		
		public int SysNo;
		public int CreateUserSysNo;
		public DateTime CreateTime;
		public string GiftDesc;
		public int ProductSysNo;
		public decimal MoneyStart;
		public decimal MoneyEnd;
		public int Status;
		public void Init()
		{
			SysNo = AppConst.IntNull;
			CreateUserSysNo = AppConst.IntNull;
			CreateTime = AppConst.DateTimeNull;
			GiftDesc = AppConst.StringNull;
			ProductSysNo = AppConst.IntNull;
			MoneyStart = AppConst.DecimalNull;
			MoneyEnd = AppConst.DecimalNull;
			Status = AppConst.IntNull;
		}
		#region IComparable Members

		public int CompareTo(object obj)
		{
			SaleGiftRelateMoneyInfo b = (SaleGiftRelateMoneyInfo)obj;
			if ( this.MoneyStart >= b.MoneyStart)
				return 1;
			else
				return -1;
		}

		#endregion
	}
}
